<?
    $url=$_SERVER['REQUEST_URI'];
    $arrPath = explode('/',$url);
    if (!empty($_GET["newsType"])) {    
        switch ($_GET["newsType"]) {
            case 1:
                $arrPath[1] = 'news';
                break;
            case 2:
                $arrPath[1] = 'analitics';
                break;
            case 3:
                $arrPath[1] = 'press';
                break;
            case 4:
                $arrPath[1] = 'science';
                break;
            default:
               $arrPath[1] = 'news';           
        }
    };

?>
﻿<div id="wrapper">
	<div id="header">
		<div class="logo">
			<a href="#"><img width="295" height="56" title="" alt="" src="<?=W_IMAGES?>logo.png"></a>
		</div><!-- .logo -->
	</div>
	<div id="navigation">
		<ul>
			<li class="st_child"><a <?if($arrPath[1]=='news') {?>class="active_nav"<?}else{?> href="<?=W_ABSPATH?>news"<?}?>>Новости</a></li>
			<li><a <?if($arrPath[1]=='analitics'){?>class="active_nav"<?}else{?>href="<?=W_ABSPATH?>analitics"<?}?>>Аналитика</a></li>
			<li><a <?if($arrPath[1]=='press'){?>class="active_nav"<?}else{?>href="<?=W_ABSPATH?>press"<?}?>>Пресса</a></li>
			<li><a <?if($arrPath[1]=='science'){?>class="active_nav"<?}else{?>href="<?=W_ABSPATH?>science"<?}?>>Наука</a></li>
			<li><a href="#">Персоналии</a></li>
			<li><a href="#">Выставки</a></li>
			<li><a href="#">Фотобанк</a></li>
		</ul>
		<div class="search right">
			<form action="">
				<ul>
					<li><input type="text" onblur="if(this.value==''){this.value='поиск'}" onfocus="if(this.value=='поиск'){this.value=''}" value="поиск" class="search_t"></li>
					<li><input type="button" class="search_b"></li>
				</ul>
			</form>	
		</div><!-- .search -->
	</div>
	<div id="main">
<table class="general_tb">
<tbody>
<tr>